/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package slishome;

import java.io.*;
import java.io.PrintWriter;
import java.net.URL;
import java.net.URLConnection;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Rebecca
 */
public class WriteFile {
    
    public static void writeTo(String deviceAction){ 
        try { 
            try (PrintWriter pw = new PrintWriter("C:/Users/ITC/Desktop/Kinect.txt")) {
                pw.print(deviceAction);
            }
        } catch (IOException ex) {
            Logger.getLogger(WriteFile.class.getName()).log(Level.SEVERE, null, ex);
        }
      }
    public static void main(String[] args) {
        writeTo("C1");
    }
    
    }

